home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: Sun, 07 Apr 96 19:05:18 GMT
- Organization: none
- Message-ID: <828903918snz@genesis.demon.co.uk>
- References: <JSA.96Feb16135027@organon.com> <emery-0204960656230001@line030.nwm.mindlink.net> <828632277snz@genesis.demon.co.uk> <dewar.828704810@schonberg> <4k3utg$ndp@solutions.solon.com> <dewar.828757752@schonberg> <danpop.828819479@rscernix> <dewar.828879781@schonberg>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <dewar.828879781@schonberg> dewar@cs.nyu.edu "Robert Dewar" writes:
-
- >Dan Pop
- >
- >"This is plain nonsense. read in Linux (or anywhere else) CANNOT be ANSI
- >compliant for the simple reason that the ANSI/ISO C standard does NOT
- >define such a function. read may (or may not) be POSIX, SVID or XPG
- >"
- >
- >Dan, you miss the point, of course read in Linux is compliant with the
- >ANSI standard, precisely because this standard does NOT specify any
- >required behavior for read, and permits the addition of such functions.
-
- If that was the point, it is about the most pointless one I've seen! :-)
-
- >How could you possibly claim that read could be non-compliant with ANSI
- >(something is either compliant or non-compliant, we do not have three
- >valued logic here).
-
- You do have a point there. However ANSI does have a few things to say about
- the identifier read. It is not reserved which means I can define my own
- external linkage function called read in a strictly conforming C program.
- If this doesn't work correctly on a POSIX system then it isn't ANSI
- conforming. So particular implementations of read() may not be ANSI
- conforming. Also if, say, fread() went and called my read() instead of the
- system one that would also fail to be conforming. Implementations generally
- need to pull a few tricks to make sure this all works correctly.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-